#include <iostream>
#include <unistd.h>
#include <cstring>

using namespace std;

int main()
{
  printf("printf 1\n");
  fprintf(stdout, "%s\n", "fprintf 1");
  perror("perror 2");

  const char* w1 = "write 1\n";
  write(1, w1 , strlen(w1));
  const char* w2 = "write 2\n";
  write(2, w2, strlen(w2));
  
  cerr << "err 2" << endl;;

 



  return 0;
}







